import java.util.Scanner;
import java.io.*;

class Test {
	public static void main(String[] args) throws IOException {
		try(
			Scanner s=new Scanner(new File("words.txt"));
		) {
			while(s.hasNext()) {
				System.out.print(s.next() + " ");
			}
			System.out.println();
		}
	}
}
